<?php
class Mysql {
	private $host;
	private $conn;
	private $user;
	private $pwd;
	private $error;
	function __construct($host, $user, $passwd) {
		$this->host = $host;
		$this->user = $user;
		$this->pwd = $passwd;
		$this->error = NULL;
	}
	function Connect() {
		$this->conn = mysql_connect($this->host, $this->user, $this->pwd);
		return $this->conn;
	}
	function Use($database) {
		return mysql_select_db($database, $this->conn);
	}
	function Query($sql) {
		return mysql_query($sqli,$this->conn);
	}
	function Close() {
		mysql_close($this->conn);
	}
